#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <iostream>
#include <QMainWindow>
#include <QDebug>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
private slots:
    void btnnumClicked();
    void btnoprClicked();
    void on_btndel_clicked();
    void btnequClicked();
    //bool IsPop(char a, char b);
     void InfixToSuffix(char* src, char* des);
  QString calculate(QString s2);
   void btnpointClicked();
   void on_btnAC_clicked();
   void btnbrkClicked();
   void btnfxClicked();
private:
    Ui::MainWindow *ui;
    bool operatorFlag;
    bool waittingForOperand;
    bool frontzero;
    bool pointflag;
    int brkflag;
    bool fxflag;
};

#endif // MAINWINDOW_H
